package models

import "gorm.io/gorm"

type Order struct {
	UserId    int    `gorm:"type:int(11)"`
	BookId    int    `gorm:"type:int(11)"`
	Condition string `gorm:"type:enum('已还书','未还书')"`
	gorm.Model
}

type Ret_Order struct {
	StudentName string `gorm:"column:student_name"`
	StudentId   string `gorm:"column:student_id"`
	BookName    string `gorm:"column:book_name"`
	BookId      string `gorm:"column:book_id"`
	Condition   string `gorm:"type:enum('已还书','未还书')"`
	ID          string
	CreatedAt   string
}
